package test;

import java.util.ArrayList;
import java.util.List;

import javax.swing.DefaultComboBoxModel;
import javax.swing.JComboBox;

import fachlogik.Angebot;

public class ListToArray
{

	/**
	 * @param args
	 */
	public static void main(String[] args)
	{
		List<Angebot> liste = new ArrayList<>();
		liste.add(new Angebot(null));
		
		Angebot[] array = liste.toArray(new Angebot[0]);
		
		DefaultComboBoxModel<Angebot> model = new DefaultComboBoxModel<>(array);
		JComboBox<Angebot> cbAngebote = new JComboBox<>(model);
		
		
		

	}

}
